package cn.com.support;

import java.nio.charset.Charset;

import org.springframework.http.MediaType;
import org.springframework.http.converter.StringHttpMessageConverter;

/**
 * 修改SPRING HTTP MESSAGE CONVERTER
	* @report
	* @Title MySpringHttpMessageConverter.java
	* @Since 2012-4-3
	* @Author Zoe
	* @Version 1.0.0 2012-4-3
 */
public class MySpringHttpMessageConverter extends StringHttpMessageConverter {

	private static final MediaType utf8 = new MediaType("text", "plain", Charset.forName("UTF-8"));   
	  
    @Override  
    protected MediaType getDefaultContentType(String dumy) {  
        return utf8;  
    }  
}
